package hb.software.attendance.controller;

import hb.software.attendance.entity.Attendance;
import hb.software.service.attendance.AttendanceManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import edu.zut.hb.software.base.web.GenericController;

public class AttendanceController extends GenericController<Attendance,Long, AttendanceManager> {

    AttendanceManager attendanceManager;

    @Autowired
    public void setAttendanceManager(AttendanceManager attendanceManager) {
        this.attendanceManager = attendanceManager;
        this.manager = this.attendanceManager;
    }

    @RequestMapping(method = RequestMethod.GET, value = "/index.html")
    public String index() {
        String result = "/attendance/index";
        return result;
    }
}
